//
//  CHHHttpRequestService.h
//  RequestText
//
//  Created by imac on 15/9/8.
//  Copyright (c) 2015年 imac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperationManager.h"
typedef void(^SuccessCallBack)(id responseObject,BOOL succe,NSDictionary *jsonDic);
typedef  void (^FailureCallBack)(NSError *error);
@interface CHHHttpRequestService : NSObject
//单纯的获取数据
+(void)GET:(NSString *)path success:(SuccessCallBack)success failure:(FailureCallBack)fail withView:(UIView *)vi;
+ (void)POST:(NSString*)path withParameters:(NSDictionary*)params success:(SuccessCallBack)success failure:(FailureCallBack)fail withView:(UIView *)vi;
@end
